package com.example.lotterysystem.controller.param;

import com.example.lotterysystem.common.filter.InfoLevelFilter;
import lombok.Data;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {

    //当前页
    private Integer currentPage = 1;

    //当前页数
    private Integer pageSize = 10;

    //偏移量
    public Integer offset() {
        return (currentPage - 1) * pageSize;
    }

}
